package com.spzx.order.api;

import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.constant.ServiceNameConstants;
import com.spzx.common.core.domain.R;
import com.spzx.order.domain.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * BelongProject: spzx-parent
 * BelongPackage: com.spzx.order.api
 * Description:
 *
 * @Author 段鑫涛
 * @Create 2025/6/8 21:02
 * @Version 1.0
 */
@FeignClient(value = ServiceNameConstants.ORDER_SERVICE,contextId = "RemoteOrderService1")
public interface RemoteOrderService {

    @GetMapping("/orderInfo/getOrderByOrderNo/{orderNo}")
    R<OrderInfo> getOrderByOrderNo(@PathVariable("orderNo") String orderNo, @RequestHeader(SecurityConstants.FROM_SOURCE) String inner);

}
